package com.vinci.wishDemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;

import java.sql.Timestamp;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 话题表
 * </p>
 *
 * @author 郭三木
 * @since 2021-12-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TbContentTopic对象", description="话题表")
public class TbContentTopic implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "话题id")
    @TableId(value = "topic_id", type = IdType.ID_WORKER)
    private String topicId;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "内容/描述")
    private String topicDescribe;

    @ApiModelProperty(value = "图片")
    private String picture;

    @ApiModelProperty(value = "发表状态(1:匿名发表；2:实名发表)")
    private Integer status;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "删除标识(0：未删除；1：删除)")
    private Integer delflag;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp updateTime;


}
